<?php
class error extends controller{
	public $error;

	public function __construct($url){
		parent::__construct($url);
		$this->error = null;
	}

	public function run(){
		$this->error();
	}

	private function error(){
		if(!isset($this->url[1]) || empty($this->url[1])) $this->url[1] = null;
		switch($this->url[1]){
			case "404":
				$this->error = "Error: FILE NOT FOUND";
				break;
			case null:
			default:
				$this->error = "Error: UNKNOWN";
				break;
		}
	}
}
?>